K_GLOBE_VALVE
Overview
Calculate the loss coefficient (K) for a globe valve using the Crane method.
Excel Usage
=K_GLOBE_VALVE(D_valve, D_pipe)
D_valve(float, required): Diameter of the valve seat bore [m]D_pipe(float, required): Diameter of the pipe attached to the valve [m]
Returns (float): Loss coefficient K for the globe valve [-]
Examples
Example 1: Reduced port globe valve
Inputs:
| D_valve | D_pipe |
|---|---|
| 0.01 | 0.02 |
Excel formula:
=K_GLOBE_VALVE(0.01, 0.02)
Expected output:
| Result |
|---|
| 135.9201 |
Example 2: Full bore globe valve
Inputs:
| D_valve | D_pipe |
|---|---|
| 0.05 | 0.05 |
Excel formula:
=K_GLOBE_VALVE(0.05, 0.05)
Expected output:
| Result |
|---|
| 6.4822 |
Example 3: Large globe valve
Inputs:
| D_valve | D_pipe |
|---|---|
| 0.1 | 0.15 |
Excel formula:
=K_GLOBE_VALVE(0.1, 0.15)
Expected output:
| Result |
|---|
| 26.9385 |
Example 4: Small globe valve
Inputs:
| D_valve | D_pipe |
|---|---|
| 0.025 | 0.025 |
Excel formula:
=K_GLOBE_VALVE(0.025, 0.025)
Expected output:
| Result |
|---|
| 7.69 |
Python Code
import micropip
await micropip.install(["fluids"])
from fluids.fittings import K_globe_valve_Crane as fluids_k_globe_valve
def k_globe_valve(D_valve, D_pipe):
"""
Calculate the loss coefficient (K) for a globe valve using the Crane method.
See: https://fluids.readthedocs.io/fluids.fittings.html#fluids.fittings.K_globe_valve_Crane
This example function is provided as-is without any representation of accuracy.
Args:
D_valve (float): Diameter of the valve seat bore [m]
D_pipe (float): Diameter of the pipe attached to the valve [m]
Returns:
float: Loss coefficient K for the globe valve [-]
"""
try:
D1 = float(D_valve)
D2 = float(D_pipe)
except (ValueError, TypeError):
return "Error: D_valve and D_pipe must be numbers."
if D1 <= 0 or D2 <= 0:
return "Error: Diameters must be positive."
if D1 > D2:
return "Error: D_valve must be <= D_pipe."
try:
result = fluids_k_globe_valve(D1=D1, D2=D2)
return float(result)
except Exception as e:
return f"Error: {str(e)}"